
package com.huatie.repository;

import com.huatie.model.User;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

@Repository
public interface UserRepository extends MongoRepository<User, String> {
    // 可以添加自定义查询方法
    User findByName(String name);
    User findByEmail(String email);
}
